Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Teleport help for Dude

  1. #11

    Default

    Quote Originally Posted by Dude View Post
    Will it make a difference if I am using the MoHaa Revival Edition?
    No, it won't make a difference. You can host servers using the MOHAA Revival Edition files. See this guide here for how to setup a local test server:

    http://uhost4free.com/mohaa.htm
    Browse MOHAA Servers Post GameSpy Era

    VISIT MOHREBORN.COM FOR LATEST INFORMATION



    Medal of Honor: Game Server Browser Fixer - Patches your MOHAA, MOHSH, and MOHBT game binaries to allow you to retrieve a list of game servers within the multi-player menu in-game even after GameSpy ceases operation!

    Medal of Honor: Query Launcher - Find, browse, organize, join, get your ping, and get more information regarding all Medal of Honor (AA, SH, & BT) servers from your PC at any time!
    Medal of Honor: Web Server Master List - Find and browse all Medal of Honor servers online using your browser!
    Add your Medal of Honor Server to the Master List
    YouTube Video for Medal of Honor: Query Launcher and MOHAASERVERS.TK!



    MOHAA Mods and Utilities
    OwN-3m-All's Mods
    Make Me Stock - A program that allows you to easily move-in and move-out non-stock mods and other files at the click of a button. Automates adding / removing mods without having to copy / move files manually.



    Quality Game Servers

    Rent dedicated Dallas Texas, Kansas City, Las Vegas Nevada, Chicago, Pennsylvania, and Sofia Bulgaria MOHAA and other game servers from We Be HostiN starting at $10 a month.


  2. #12

    Default

    Got it sorted. The answer was farther up in the console log and told what line the error was on. There were a few lines in the teleport.scr file that ArMaGedDoN had added to keep one player from teleporting more than 5 times. For some reason, those few lines kept it from loading on this test server. I think there are one or more files associated with those lines that kept it from loading. I think some file that IDed the player. I just put slashes in front of the code to kill it and it seems to work on both my public and test server.


    Code:
    			//if(netname local.player != "<(CG)>Sidifan" || local.player.sidifan)
    			//{
    			//	local.player tele local.neworigin
    			//	local.player.viewangles = local.newview
    			//}
    			//else

    Thanks everyone. Now, back to the map modding fun.
    Last edited by Dude; April 29th, 2015 at 09:29 AM.
    http://aodmohaaclan.clanservers.com/public_html/Xnull Sig.jpg

  3. #13

    Default

    Quick question guys, not related to teleporting but rather me being a n()()b

    Splatterguts posted some code at the beginning of this thread, but it has all kind of weird codes and colors in it.
    This makes it impossible for me to copy and paste it into my editor. Not without editing and deleting all the undeeded codes line-by-line....

    Or am I doing something wrong here? I use notepad++ for editing scripts.
    The "old" way with the CODE tags worked perfectly. This new way is a nightmare!


    P.S.
    I didn't mean to hijack the thread, forgive me
    -=With One Well Placed Blow Thorin Cleaves Your Skull=-

    http://www.twinbee.org/hob/play.php?snap=hobbit


    <KILL THORIN>
    You attack Thorin.
    But the effort is wasted. His defense is
    too strong.
    Thorin attacks -you- !!!
    With one well placed blow Thorin cleaves
    your skull.
    You are dead.
    You have mastered 0.0% of this adventure.

  4. #14
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,071

    Default

    @Midnight,
    the new code tags, just performs syntax highlighting, which I find much easier to follow because it formats the text/script.
    If you want to select all the text in the code bracket, just double click anywhere in the code. It will select all your code, then you can copy it and paste it into notepad++ or any other editor you use.

  5. #15

    Default

    Sometimes that happens with the xcode tag. Double check the URL of the post and make sure it doesn't end with ?highlight=blahblah, because that will add html color tags around any highlighted word making it suck to copy and paste. I just "quoted" the first post and deleted the xcode tags for you here though so you shouldn't have an issue.

    main:
    thread port1
    thread stufftolookat
    end
    
    //Church West Door -> Hole in the Floor
    port1:
    local.trig = spawn trigger_use // When the player presses their use key, do the trigger
    local.trig targetname port1 // Give the trigger a name
    local.trig.origin = ( -215 -192 100 ) // Where is this trigger at? Starting spot for your teleport
    local.trig setsize ( -5 -32 -60 ) ( 5 32 60 ) // How big is the trigger? Set the area for the player to activate it
    $port1 waittill trigger // Wait until the player hits the trigger to do stuff
    local.player = parm.other // Allow us to do stuff to the player
    if(local.player.useheld) // If they are holding their use key do stuff
    {
    local.player tele ( -2700 -2110 240 ) // Where are you moving the player to? Ending port for your teleport
    local.player hurt 5 // Hurts the player 5 health for going through the portal, not necessary, makes them think twice though
    $port1 remove // Get rid of the teleport by using the name defined above for a few seconds so other players wont get stuck on them
    wait 2 // waiting a few seconds
    thread port1 // turning the portal back on so we can go through it again
    }
    end
    
    stufftolookat: // This can be literally anything, I have my servers set up with portals on doors and a line of bangalores on the door, looks kinda neat. You can use a light or something else, or nothing at all if you don't want there to be a visible thing for players to see where teleports are
    // -----------------------------------------------------
    // ---------- Church West Door -------------------------
    // -----------------------------------------------------
    	local.static = spawn script_model
        local.static model "items/bangalore.tik"
        local.static.origin = ( -215 -192 60 )
        local.static.angles = ( 0 180 0 )
        local.static.scale = 1
    	local.static ghost
    
    	local.static = spawn script_model
        local.static model "items/bangalore.tik"
        local.static.origin = ( -215 -192 80 )
        local.static.angles = ( 0 180 0 )
        local.static.scale = 1
    	local.static ghost
    
    	local.static = spawn script_model
        local.static model "animate/bangalore_pulsating.tik"
        local.static.origin = ( -215 -192 100 )
        local.static.angles = ( 0 0 0 )
        local.static.scale = 1
    	local.static ghost
    
    	local.static = spawn script_model
        local.static model "items/bangalore.tik"
        local.static.origin = ( -215 -192 120 )
        local.static.angles = (0 180 0 )
        local.static.scale = 1
    	local.static ghost
    
    	local.static = spawn script_model
        local.static model "items/bangalore.tik"
        local.static.origin = ( -215 -192 140 )
        local.static.angles = ( 0 180 0 )
        local.static.scale = 1
    	local.static ghost
    end

  6. #16
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,071

    Default

    I was going to say, it displays properly for me.
    Attached Thumbnails Attached Thumbnails code.jpg  

  7. #17

    Default

    This is what I was talking about, James. If I use the forum search function to search for something that the xcode would have highlighted to match the formatting you'd see in ++ (URL ending in ?highlight=targetname) this is what I see when targetname appears in the xcode ...

    Click image for larger version. 

Name:	targetname html tags.jpg 
Views:	21 
Size:	47.6 KB 
ID:	1303

    I'm sure thats a known issue though, it's no big deal - just delete the end of the URL and all is well. That's what I thought midnight was talking about.
    Last edited by [cB]SplatterGuts; April 29th, 2015 at 12:53 PM. Reason: premature submission

  8. #18

    Default

    Indeed, Splatter!
    It displays perfectly now.

    Thanks for the help guys!!

  9. #19
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    Maybe the reason why it is not working on test server with those lines is because the command netname is a Reborn command, you might not have reborn installed on test server. :P

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  10. #20

    Default

    That would be it, Purple. Though...I am thinking of adding Reborn. That would allow me to use my admin menu for map changes and admin password instead of typing it in every time. Probably more trouble than what it's worth on just a test server, though.

    Right now, I am re-working map M5L3 - The Bridge. I like modding the SP maps because everyone can play them without a separate download (like a custom map) and they are a nice change to the same old DM maps. If anyone is interested in the map mod pack, let me know.
    http://aodmohaaclan.clanservers.com/public_html/Xnull Sig.jpg

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •